<!DOCTYPE html>
<!--[if IE 8]>			<html class="ie ie8"> <![endif]-->
<!--[if IE 9]>			<html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!-->	<html> <!--<![endif]-->
<head>
	<meta charset="utf-8">
	<title>密码找回 {$site_name} </title>
	<meta name="keywords" content="{$site_seo_keywords}" />
	<meta name="description" content="{$site_seo_description}">
	<include file="Public:head" />
</head>

<body class="body-white">
<div class="wrap">
	<include file="Public:nav" />
	<div id="main-cmf">
		<div class="content">
			<div class="container">
				<div class="row">
					<div class="col-lg-4 col-md-4 col-sm-6 col-xs-10 col-lg-offset-4 col-md-offset-4 col-sm-offset-3 col-xs-offset-1 animate_afr">
						<h2 class="text-center">忘记密码</h2>
						<div class="widget tabs">
							<div id="horizontal-tabs">
								<div class="contents">
									<div class="tabscontent" id="content1" style="display: block;">
										<form class="form-light" id="forgot" action="{:UU('Login/runforgot_pwd')}" method="post">
											<div>
												<input type="text" id="input_username" name="member_list_username" placeholder="用户名" class="form-control" required>
											</div>
											<div>&nbsp;</div>
											<div>
												<input type="email" id="input_email" name="member_list_email" placeholder="注册邮箱" class="form-control" required>
											</div>
											<div>&nbsp;</div>
											<div class="row">
												<div class="col-lg-5 col-md-5 col-sm-5 col-xs-5">
													<input type="text" class="form-control" placeholder="" id="verify" style="height:40px;" name="verify" required>
												</div>
												<div class="col-lg-7 col-md-7 col-sm-7 col-xs-7">
													<img class="verify_img" id="verify_img" src="{:UU('Login/verify_forgot')}" onClick="this.src='{:UU('Login/verify_forgot')}'+<in name='Think.config.url_model' value='1,2'>'?'<else />'&'</in>+Math.random()" style="cursor: pointer;width:100%;border: 1px solid #d5d5d5;height:40px;" title="点击获取">
												</div>
											</div>
											<div>&nbsp;</div>
											<div>
												<button class="btn btn-primary col-lg-12 col-md-12 col-sm-12 col-xs-12" type="submit">确定</button>

											</div>
											<div>&nbsp;</div>
											<div style="text-align: center;">
												<div class="row">
													<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
														<a href="{:UU('Register/index')}">现在注册</a>
													</div>
													<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
														<a href="{:UU('Login/index')}">现在登录</a>
													</div>
												</div>
											</div>
										</form>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<include file="Public:footer"/>
</div>
<include file="Public:scripts"/>
<script type="text/javascript">
//添加操作
$(function(){
	$('#forgot').ajaxForm({
		success: complete, // 这是提交后的方法
		dataType: 'json'
	});
	function complete(data){
		if(data.status==1){
			layer.alert(data.info, {icon: 6}, function(index){
				layer.close(index);
				window.location.href=data.url;
			});
		}else{
			layer.alert(data.info, {icon: 5}, function(index){
				layer.close(index);
				if(data.info=='验证码错误'){
					$('#verify').val("");
				}else{
					$(':input').val("");
				}
			});
			var $verify_img=$('#verify_img');
			var $url=$verify_img.attr("src");
			if($url.indexOf('?')>0){
				$url=$url+'&'+Math.random();
			}else{
				$url=$url+'?'+Math.random();
			}
			$verify_img.attr("src",$url); 
		}
		return false;
	}
});
</script>
</body>
</html>